﻿using System;
using DevExpress.Xpf.Scheduler;
using Agnes.Core;

namespace Agnes.TaskManager
{
    public class TaskManagerService
    {
        public static SchedulerControl SchedulerControl { get; private set; }

        public static TaskCalendarViewModel TaskCalendarViewModel { get; private set; }

        public static TaskSummaryViewModel TaskSummaryViewModel { get; private set; }

        public static TaskManager TaskManager { get; private set; }

        public static void InitService()
        {
            TaskManager = TaskManager.CreateAsChild();
            TaskManager.InitTaskManager();
            TaskCalendarViewModel = new TaskCalendarViewModel(TaskManagerService.TaskManager);
            TaskSummaryViewModel = new TaskSummaryViewModel(TaskManagerService.TaskManager);
        }
    }
}